.shop-container {
  padding: 18px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  .category-list {
    padding-left: 40px;
    .item {
      font-size: 15px;
      color: $-color-gray;
      height: 24px;
      @include flex_center();
      min-width: 60px;
      margin-right: 10px;
      position: relative;
      padding: 0 10px;
      &:before, &:after {
        content: "";
        position: absolute;
        background-size: 100% 100%;
      }
      &:before {
        z-index: 1;
      }
      span {
        position: relative;
        z-index: 1;
        @include line-over();
      }
      &.isHot {
        padding: 0 10px 0 35px;
        min-width: 80px;
        &:after {
          content: "";
          position: absolute;
          height: 100%;
          right: 0;
          left: 15px;
          background: linear-gradient(to right, #D6D6D6, #EDEDED);
          border-radius: 4px;
          transform: skew(-20deg);
        }
        &:before {
          width: 35px;
          height: 35px;
          background-image: url("~@/assets/images/shop/tab-hot.png");
          left: 2px;
          bottom: -5px;
        }
      }
      &.active {
        font-weight: bold;
        color: $-color-black;
        border-radius: 4px;
        &.normal {
          @include background_color();
          &:before {
            width: 34px;
            height: 32px;
            right: -16px;
            top: -16px;
            background-image: url("~@/assets/images/shop/icon-lightning.png");
          }
        }
        &.isHot {
          &:after {
            background: linear-gradient(to right, #FF8A00, #FFAE34);
          }
          &:before {
            background-image: url("~@/assets/images/shop/tab-hot-full.png");
          }
        }
      }
    }
  }
  .search {
    background: #fff;
    border-radius: 4px;
    position: relative;
    margin-right: 40px;
    .ivu-input {
      height: 36px;
      width: 300px;
      padding-right: 70px;
    }
    .ivu-icon {
      font-size: 20px;
      line-height: 36px;
    }
    .ivu-btn {
      position: absolute;
      right: 10px;
      height: 28px;
      width: 56px;
    }
  }
  .goods-content {
    background: $-color-white;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 0;
    .sub-category-list {
      margin-bottom: 16px;
      flex-wrap: nowrap;
      overflow: auto;
      display: flex;
      height: max-content;
      position: relative;
      &:after {
        position: absolute;
        bottom: 0;
        content: "";
        left: 40px;
        right: 40px;
        height: 1px;
        background: #F4F4F4;
        z-index: 1;
      }
      .item {
        line-height: 36px;
        box-sizing: border-box;
        font-size: 15px;
        color: $-color-muted;
        white-space: nowrap;
        padding: 0 5px;
        margin-left: 40px;
        &.active {
          color: $-color-black;
          font-weight: bold;
          @include theme_each {
            border-bottom: 3px solid get_color('default_color');
          }
        }
      }
    }
    .goods-box {
      overflow: auto;
      padding: 0 40px 0 40px;
      flex: 1;
      position: relative;
    }
    .goods-list {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      grid-gap: 10px;
      .item {
        border: 1px solid #f4f4f4;
        border-radius: 4px;
        position: relative;
        overflow: hidden;
        &:hover {
          box-shadow: 2px 2px 10px 0px #e4e4e4;
          transition: all .3s linear;
        }
        .image {
          height: 216px;
          cursor: pointer;
          overflow: hidden;
          position: relative;
          &.is-new:after {
            content: "";
            position: absolute;
            top: 8px;
            right: 8px;
            width: 36px;
            height: 18px;
            background: url("~@/assets/images/shop/label-new.png") no-repeat center center / 100% 100%;
          }
        }
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
        .goods-info {
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          padding: 16px 18px 14px 18px;
          box-sizing: border-box;
          .goods-name {
            display: flex;
            align-items: baseline;
            @include line-over(2);
            margin-bottom: 14px;
          }
          .goods-bottom {
            position: relative;
            .price {
              @include price()
            }
            .line-price {
              @include price('#ccc', 14, 12);
              margin-left: 5px;
            }
            .add-cart {
              @include icon_plus_minus(20, 100%);
            }
          }
        }

      }
    }

  }
}

.stock-none {
  &::after {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0,0,0,0.3);
    background-image: url("~@/assets/images/shop/stock-none.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 104px;
  }
}
.fly-item,
.fly-item > div {
  position: fixed;
  transition: transform .4s;
}
.fly-item {
  display: none;
  transition-timing-function: linear;
}
.fly-item > div {
  transition-timing-function: cubic-bezier(.55,0,.85,.36);
  background: url("~@/assets/images/shop/icon-cart-full.png") no-repeat center center / 100% 100%;
  width: 40px;
  height: 40px;
}


